#include <iostream>
#include <gtk/gtk.h>

int main(int argc , char** argv){
     gtk_init(&argc, &argv);
 
    GtkWidget *window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
    gtk_window_set_title(GTK_WINDOW(window), "第一个GTK程序");
    gtk_window_set_default_size(GTK_WINDOW(window), 200, 200);
 
    g_signal_connect(window, "destroy", G_CALLBACK(gtk_main_quit), NULL);
 
    gtk_widget_show_all(window);
    gtk_main();
 
    return 0;
}
